package com.swpu.select.dao;
import com.swpu.select.pojo.Course;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;
@Mapper
public interface CourseMapper {
    int addCourse(Course course);
    int updateCourse(Course course);
    int deleteCourse(String courseId);
    Course getCourseById(String courseId);
    List<Course> getAllCourses();
    List<Course> getCoursesByDepartment(String department);
    List<Course> getCoursesByMajor(String major);
    List<Course> getCoursesByTeacher(String name);
    List<Course> getCoursesByCredit(int credit);
    int getCourseCount();
}
